<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test extends CI_Controller
{

	public function __construct()
	{
		parent::__construct();
		$this->load->model('Test_model');
		// load the database and connect to MySQL
		$this->load->database();
		// load the needed helpers
		// 		$this->load->helper(array('test','url'));
	}

	function index()
	{
		$data['titulo'] = "Testando";
		$data['cabecalho'] = "Test";

// 		$data['perguntas'] = $this->Test_model->get_test();
		$data['perguntas'] = $this->Test_model->find();

		$this->load->view('test_message', $data);
	}
}
?>